<ui:composition
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    template="/WEB-INF/includes/templates/page-template.xhtml">
    <ui:define name="page-content">
        <ice:form id="f1">
            <ice:panelTabSet id="pts" immediate="true" selectedIndex="#{mailController.selectedIndex}" tabChangeListener="#{clientController.processTabChange}">
                <ice:panelTab label="#{msgs['page.panelTabSet.tab1']}"
                              title="#{msgs['page.panelTabSet.static.accessibility.tabOneTitle']}'">
                    <ui:include src="/WEB-INF/includes/pages/accueil.xhtml" />
                </ice:panelTab>
                <ice:panelTab label="#{msgs['page.panelTabSet.tab2']}"
                              title="#{msgs['page.panelTabSet.static.accessibility.tabTwoTitle']}'" >
                    <ui:include src="/WEB-INF/includes/pages/Questionnaire/questionnairesOuverts.xhtml" />
                    <ui:include src="/WEB-INF/includes/pages/Questionnaire/repondreQuestionnaire.xhtml"/>
                    <ui:include src="/WEB-INF/includes/pages/Questionnaire/resultatQuestionnaire.xhtml"/>
                </ice:panelTab>
                <ice:panelTab label="#{msgs['page.panelTabSet.tab3']}" rendered="#{sessionController.utilisateur.admin}"
                              title="#{msgs['page.panelTabSet.static.accessibility.tabThreeTitle']}'">
                    <ui:include src="/WEB-INF/includes/pages/admin/administration.xhtml" />
                </ice:panelTab>
            </ice:panelTabSet>
        </ice:form>
    </ui:define>
</ui:composition>